package main

import (
	"fresh-e-commerce/api"
	"fresh-e-commerce/inits"
	"fresh-e-commerce/viper"
	"github.com/gin-gonic/gin"
)

func main() {
	viper.InitViper()
	inits.InitNaCos()
	inits.InitMysql()
	inits.InitRedis()
	inits.InitZap()

	r := gin.Default()
	api.LoadApp(r)
	r.Run() // 监听并在 0.0.0.0:8080 上启动服务
}
